<?php
// +----------------------------------------------------------------------
// | 应用设置
// +----------------------------------------------------------------------

use think\facade\Env;

return [
    // 应用地址
    'app_host'              => env('APP_HOST', ''),
    // 应用的命名空间
    'app_namespace'         => '',
    // 是否启用路由
    'with_route'            => true,
    // 默认应用
    'default_app'           => 'home',
    // 默认时区
    'default_timezone'      => 'Asia/Shanghai',

    // 应用映射（自动多应用模式有效）
    'app_map'               => [
        Env::get('EASYADMIN.ADMIN', 'admin') => 'admin',
    ],
    // 域名绑定（自动多应用模式有效）
    'domain_bind'           => [],
    // 禁止URL访问的应用列表（自动多应用模式有效）
    'deny_app_list'         => ['common'],

    // 异常页面的模板文件
    'exception_tmpl'        => Env::get('APP_DEBUG') == 1 ? app()->getThinkPath() . 'tpl/think_exception.tpl' : app()->getBasePath() . 'common' . DIRECTORY_SEPARATOR . 'tpl' . DIRECTORY_SEPARATOR . 'think_exception.tpl',
    // 跳转页面的成功模板文件
    'dispatch_success_tmpl' => app()->getBasePath() . 'common' . DIRECTORY_SEPARATOR . 'tpl' . DIRECTORY_SEPARATOR . 'dispatch_jump.tpl',
    // 跳转页面的失败模板文件
    'dispatch_error_tmpl'   => app()->getBasePath() . 'common' . DIRECTORY_SEPARATOR . 'tpl' . DIRECTORY_SEPARATOR . 'dispatch_jump.tpl',

    // 错误显示信息,非调试模式有效
    'error_message'         => '页面错误！请稍后再试～',
    // 显示错误信息
    'show_error_msg'        => true,
    // 静态资源上传到OSS前缀
    'oss_static_prefix'     => Env::get('EASYADMIN.OSS_STATIC_PREFIX', 'static_easyadmin'),
    
    //==========我的应用配置==========
	'dev_host'			=> 'www2.dancephp.com', //本地调试地址
	'dashboard_page'    => 'mobmall_manage/index/index',
    'dashboard_style'   => 'dance-dark',
    'layout_fold'       => 2, //显示菜单级别
	'admin_is_uc'      	=> 0,

	//分页配置
	'paginate'      => [
		'type'      => 'bootstrap',
		'var_page'  => 'page',
		'list_rows' => 15,
	],
	'captcha'  => [
		// 字体大小
		'fontSize' => 35,
		// 验证码长度（位数）
		'length'   => 4,
		'expire'    =>60,
	],

	//cookie相关
	'SITE_ID'				=> 'jsiwj21xsmc',
	'SITE_HASH'				=> '0!l%p13Q3#',
	'SITE_COOKIEPRE'		=> '9db5b',

	'per_page' => 20,

	'UCENTER_ENABLED'		=> 1, //UCenter 开启1, 关闭0
	'UCENTER_LOGIN'			=> 0, //UCenter 开启1, 关闭0

	'WeixinOpenAppid'		=> 'wxf1c89e848196e0e6',
	'WeixinOpenAppsecret'	=> '03dbdbd9e2081a38c65488350d3537e3',

	'baiduAK'				=> '3ckRPu5z3IU9e7fT3Ml2DshYXIx7NrGx',

	'youku_id'				=> '731c366ac44137ea',
	'youku_secret'			=> '31c9422b57cdeed149a270aadf80d59f',

	'ftp_status'		=> '1',
	'ftp_web'			=> 'http://img.uucms.com/',
	'ftp_config'		=> array(
		'server'		=> '121.40.20.23',
		'username'		=> 'uucmsimgftp',
		'password'		=> 'm88vjsly@su8w',
		'port'			=> 1021,
		'pasv'			=> false,
		'ssl'			=> false,
		'timeout'		=> 20,
		'dir'			=> '/',
	),
];
